package com.yt.ch03.biz;

public class SworkProxy implements Work {
	Work w = null;

	public SworkProxy(Work w) {
		this.w = w;
	}

	public void start() {
		System.out.println("��ʼ");
	}

	public void end() {
		System.out.println("����");
	}

	public void work(String name) {
		start();
		w.work(name);
		end();
	}

	@Override
	public void show(String name) {
		w.show("哈哈");
	}
}











